package com.sbl.bajw.pc.action;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sbl.bajw.common.web.JsonResultUtil;
import com.sbl.bajw.common.web.RequestUnit;
import com.sbl.bajw.common.web.SessionUnit;
import com.sbl.bajw.pc.model.FeedBackReplyModel;
import com.sbl.bajw.pc.service.FeedBackReplyService;

/**
 * @作者：罗琦
 * @类名： FeedBackReplyAction
 * @类作用： 用户意见反馈回复增删改查
 * @时间：2015年5月5日
 */
@Controller
@RequestMapping("/Reply")
public class FeedBackReplyAction {

	@Resource
	private FeedBackReplyService service;
	
	/**
	 * @标题：create
	 * @作者：Administrator
	 * @时间：2015年5月5日
	 * @作用：用户意见反馈回复
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "/create")
	public @ResponseBody String create(HttpServletRequest request, HttpServletResponse response) throws Exception{
		FeedBackReplyModel model = RequestUnit.getModel(FeedBackReplyModel.class);
		model.setCreater(SessionUnit.getUserId());
		service.insert(model);
		return JsonResultUtil.Success();
	}
}
